<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterCouponProductAddQuoteId extends Migrator
{
    public function up()
    {

        $this->table('coupon_order')
            ->addColumn('quote_id', 'integer', ['limit' => 11, 'default' => 0, 'comment' => '关联表字段'])
            ->update();

    }

    public function down()
    {

        $this->table('coupon_order')
            ->removeColumn('quote_id');
    }

}
